<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<script type="text/javascript" src="./vue.js"></script>
		<title></title>
	</head>
	<body>
		<div id="root">
			<student></student>
		</div>
	</body>
	<script type="text/javascript">
		const student = Vue.extend({
			template: `
				<div>
					<h2>标题</h2>
					<p>姓名: {{name}}</p>
				</div>
			`,
			data() {
				return {
					name: 'bai'
				}
			}
		})
		new Vue({
			el: '#root',
			data: {},
			components: {
				student
			}
		})
	</script>
</html>
